package com.shop.controller;


import com.shop.common.result.util.ResultModel;
import com.shop.service.ShopService;
import com.shop.vo.AddShopVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 店主表 前端控制器
 * </p>
 *
 * @author 靳 旺
 * @since 2021-03-14
 */
@RestController
@Api(tags = "店主前端控制器")
@RequestMapping("/shop-do")
public class ShopController {


    @Autowired
    private ShopService shopService;

    @RequestMapping("addShop")
    @ApiOperation(value = "添加商户",notes = "靳旺")
    public ResultModel addShop(@RequestBody AddShopVo addShopVo)throws Exception{
        return shopService.addShop(addShopVo);
    }



}
